package com.zhaozhe.singleton;

/**
 * Created by ghjou on 2018/3/7.
 */
public class AManager {
    private static final MSingleton<AManager> mInstance = new MSingleton<AManager>() {
        @Override
        protected AManager create() {
            return new AManager();
        }
    };

    public static AManager getInstance(){
        return mInstance.get();
    }

    private AManager(){
        System.out.println("AManager created!");
    }

    public static void main(String[] args) {
        AManager aManager = new AManager();
    }
}